package com.ouc.openplatform.zykt.reportManage.service.impl;
import java.util.Date;
import java.util.List;
import com.ouc.openplatform.zykt.reportManage.model.DD_Report;
import com.ouc.openplatform.zykt.reportManage.service.DD_ClientReportService;
import com.ouc.openplatform.zykt.reportManage.service.DD_ReportService;
public class DD_ClientReportServiceImpl implements DD_ClientReportService{
	private DD_ReportService reportService;

	public DD_ReportService getReportService() {
		return reportService;
	}

	public void setReportService(DD_ReportService reportService) {
		this.reportService = reportService;
	}
	//1.保存报告信息-----sxl
	@Override
	public int saveReport(DD_Report report) {
		report.setCreateTime(new Date());
		return reportService.saveReport(report);
	}

	//2.删除报告信息-----sxl
	@Override
	public int deleteReport(int id) {
		return reportService.deleteReport(id);
	}

	//3.修改报告信息-----sxl
	@Override
	public int updateReport(DD_Report report) {
		return reportService.updateReport(report);
	}

	//4.获取所有报告信息-----sxl
	@Override
	public List<DD_Report> getReport(DD_Report report) {
		return reportService.getReports(report);
	}
	
	
}
